# 计科201132叶英杰
# for i in range(1, 100,5):5表示每次循环的步长
a=0
for i in range(1, 101):
    a+=i
print(a)
# while循环
sum=0
i=0
while i<=100:
    sum+=i
    i+=1
print(sum)